Forum Activity for @michael

michael
@michael
04/14/18 07:03:44PM
7,826 posts

How to use the notifications dropdown menu - more clarity is needed


Using Jamroom

Previously it was all the options but that was deemed too confusing so was adjusted to the current model.

You're seam to be offering the suggestion to revert to the old model of all options displaying. dilemma :)
notifications.jpg notifications.jpg - 105KB
michael
@michael
04/14/18 06:59:18PM
7,826 posts

Conditional Sitebuilder Menu Item


Jamroom Developers

OR you could use a smarty function in combination with the existing menu.

Currently the Site Builder menu is created with the /modules/jrSiteBuilder/templates/menu.tpl file.

You can over-ride that with normal system by copying it to the skin your using and calling it jrSiteBuilder_menu.tpl.

Docs: "Altering a modules template"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1051/altering-a-modules-template


The current menu.tpl file looks like this:
{foreach $_list as $_l0}
<li {if $_post.module_url == $_l0.menu_url}class="active"{/if}>
    <a href="{if $_l0.menu_url|substr:0:4 === 'http'}{$_l0.menu_url}{elseif $_l0.menu_url|substr:0:1 === '#'}{$_l0.menu_url}{else}{$jamroom_url}/{$_l0.menu_url}{/if}" onclick="{$_l0.menu_onclick}" class="menu_0_link" data-topic="{$_l0.menu_url}">{$_l0.menu_title}</a>
    {if is_array($_l0._children)}
    <ul>
        {foreach $_l0._children as $_l1}
        <li>
            <a href="{if $_l1.menu_url|substr:0:4 === 'http'}{$_l1.menu_url}{elseif $_l1.menu_url|substr:0:1 === '#'}{$_l1.menu_url}{else}{$jamroom_url}/{$_l1.menu_url}{/if}" onclick="{$_l1.menu_onclick}" >{$_l1.menu_title}</a>
            {if is_array($_l1._children)}
            <ul>
            {foreach $_l1._children as $_l2}
                <li><a href="{if $_l2.menu_url|substr:0:4 === 'http'}{$_l2.menu_url}{elseif $_l2.menu_url|substr:0:1 === '#'}{$_l2.menu_url}{else}{$jamroom_url}/{$_l2.menu_url}{/if}" onclick="{$_l2.menu_onclick}" >{$_l2.menu_title}</a></li>
            {/foreach}
            </ul>
            {/if}
        </li>
        {/foreach}
    </ul>
    {/if}
</li>
{/foreach}

You can adjust it by passing it first into your own smarty function

Docs: "Defining your own SMARTY function"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function

So it becomes
{xxYourCustom_something list=$_list assign="_list"}
{foreach $_list as $_l0}
....... the same stuff as it was before
{/foreach}

So in your custom function you accept the current list and adjust as necessary.

OR you could inject via other listener parameters before the template is reached.
michael
@michael
04/14/18 06:50:12PM
7,826 posts

post to "a jr site"


Suggestions

here are the very well documented docs

Docs: "Ultrajam: LifeStream"
https://www.jamroom.net/ultrajam/documentation/modules/1692/lifestreams
michael
@michael
04/14/18 06:45:06PM
7,826 posts

Site Builder On Profile Pages?


Using Jamroom

Was wondering when this question would come up. It was one of the points bough up when considering releasing Site Builder. "But as soon as we release it, we'll get comments about it not working on profiles."

Its been a lot longer than soon.

The answer is no. Because site builder takes over the whole page as a replacement for the .tpl that controls the page. There is not one .tpl file that controls the page for any page on the profile, all the pages come from modules that are there because of the quota system. So its too complex to also add site builder on top of that complexity and still be able to support it.

Site Builder is supposed to be a way to allow the construction of the top section of the site without the need for template adjustment.

Template adjustment still has more flexibility than Site Builder but with the cost of being slightly more involved to setup and requiring the need to deal with code.
michael
@michael
04/13/18 10:15:19PM
7,826 posts

Skin Customization for Follow Me


Design and Skin Customization

Definitely will not be any updates coming out for any jamroom version pre JR6.
michael
@michael
04/13/18 09:45:00PM
7,826 posts

profile custom feilds quota issues (opposite expected behavior)


Using Jamroom

The wrapper function is
 {if jrUser_is_logged_in() && $_conf.sedreadsiteskin4_profile_questions == 'on'}
so that would limit it to show only to users who are logged in and have a config setting set to on.

Looking inside the smarty_function_jrNingImport_signup_questions() function it calls the 'signup_questions.tpl' template.

That looks like this:
{if isset($_items)}
    {foreach from=$_items item="item"}
        {if
        $item.group  == 'visitor' ||
        ($item.group == 'user' && jrUser_is_logged_in()) ||
        ($item.group == 'power' && isset($_user.quota_jrUser_power_user) && $_user.quota_jrUser_power_user == 'on') ||
        ($item.group == 'admin' && jrUser_is_admin()) ||
        ($item.group == 'master' && jrUser_is_master()) ||
        (jrCore_checktype($item.group, 'number_nz') && $item.group == $_user.profile_quota_id)
        }
            <h4>{$item.label}:</h4> {$item.answer}<br>
        {/if}
    {/foreach}
{/if}

There are a lot of IF's that need to be met in order for things to display.
michael
@michael
04/13/18 03:16:37AM
7,826 posts

Overriding a View Function


Jamroom Developers

There are many ways to do things, what I normally do when trying to figure something out is use a server with xdebug on it and put a breakpoint where I want to be, then look back up to see what its run over.

If there's nothing in the chart of override points that works for you, how about a listener early on in the flow of things that checks if the $_post data matches a specific structure that is desired to be redirected and if it fits the case use jrCore_location() to redirect to where you want to go. It would cause a page refresh, but would probably not be noticed by the user who is waiting for a page refresh at that point anyhow.
michael
@michael
04/12/18 10:02:56PM
7,826 posts

profile custom feilds quota issues (opposite expected behavior)


Using Jamroom

Looks like you're going to need to copy the smarty function to get just what you need if you need to refine the results.

Docs: "Defining your own smarty function"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function
michael
@michael
04/12/18 09:48:15PM
7,826 posts

Overriding a View Function


Jamroom Developers

I made this diagram of override points a long time ago, there are probably more now, but its a map of router.php

https://upload.wikimedia.org/wikipedia/commons/6/60/A_diagram_of_the_routing_system_used_in_Jamroom_5.png

There are lots of override points.
  134